/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.InheritanceDemo;

/**
 *
 * @author Leo
 */
public class Account {
    private String accHolder;
    private String accType;
    private double openBal;

    /**
     * @return the accHolder
     */
    public  Account(){
    }
    public  Account(String accH,String accT,double openBl ){
        
        accHolder= accH;
        accType = accT;
        openBal =openBl;
    }
    public String getAccHolder() {
        return accHolder;
    }

    /**
     * @param accHolder the accHolder to set
     */
    public void setAccHolder(String accHolder) {
        this.accHolder = accHolder;
    }

    
    public String getAccType() {
        return accType;
    }
    public void setAccType(String accType) {
        this.accType = accType;
    }

  
    public double getOpenBal() {
        return openBal;
    }

   
    public void setOpenBal(double openBal) {
        this.openBal = openBal;
    }
    public void withDrawal(double amt)
    {
        openBal = openBal - amt;
    }
    private void deposit(double amt)
    {
        openBal = openBal + amt;
    }
    
}
